Hệ thống quản lý phòng khám trực tuyến bằng PHP

1 <?php
2 // This script and data application were generated
by AppGini 5.62
3 // Download AppGini
for free from https://bigprof.com/appgini/download/
4
5
6 error_reporting(E_ERROR | E_WARNING | E_PARSE);

7
8 if
(!defined('datalist_db_encoding')) define('datalist_db_encoding', 'iso-8859-1');
9 if
(!defined('maxSortBy')) define('maxSortBy', 4);
10 if
(!defined('empty_lookup_value')) define('empty_lookup_value', '{empty_value}');
11
12 if
(function_exists('date_default_timezone_set')) @date_default_timezone_set('America/New_York');
13 if
(function_exists('set_magic_quotes_runtime')) @set_magic_quotes_runtime(0);
14
15 $GLOBALS[
'filter_operators'] = array(
16     
'equal-to' => '<=>',
17     
'not-equal-to' => '!=',
18     
'greater-than' => '>',
19     
'greater-than-or-equal-to' => '>=',
20     
'less-than' => '<',
21     
'less-than-or-equal-to' => '<=',
22     
'like' => 'like',
23     
'not-like' => 'not like',
24     
'is-empty' => 'isEmpty',
25     
'is-not-empty' => 'isNotEmpty'
26 );
27
28 $currDir = dirname(__FILE__);
29 include(
"$currDir/settings-manager.php");
30 detect_config();
31 migrate_config();
32
33 include(
"$currDir/config.php");
34 include(
"$currDir/db.php");
35 include(
"$currDir/ci_input.php");
36 include(
"$currDir/datalist.php");
37 include(
"$currDir/incCommon.php");
38 include(
"$currDir/admin/incFunctions.php");
39
40     ob_start();
41
42
43     
/* trim $_POST, $_GET, $_REQUEST */
44     
if(count($_POST)) $_POST = array_trim($_POST);
45     
if(count($_GET)) $_GET = array_trim($_GET);
46     
if(count($_REQUEST)) $_REQUEST = array_trim($_REQUEST);
47
48     
// include nav menu links and hook functions
49     @include(
"$currDir/hooks/links-navmenu.php");
50     @include_once(
"$currDir/hooks/__global.php");
51
52     
// check sessions config
53     $noPathCheck =
true;
54     $arrPath = explode(
';', ini_get('session.save_path'));
55     $save_path = $arrPath[count($arrPath)-
1];
56     
if(!$noPathCheck && !is_dir($save_path)){
57         ?>
58         <center>
59             <div
class="alert alert-danger">
60                 Your site
is not configured to support sessions correctly. Please edit your php.ini file and change the value of <i>session.save_path</i> to a valid path.
61             </div>
62         </center>
63         <?php
64         exit;
65     }
66     
if(session_id()){ session_write_close(); }
67     $configured_save_handler = @ini_get(
'session.save_handler');
68     
if($configured_save_handler != 'memcache' && $configured_save_handler != 'memcached')
69         @ini_set(
'session.save_handler', 'files');
70     @ini_set(
'session.serialize_handler', 'php');
71     @ini_set(
'session.use_cookies', '1');
72     @ini_set(
'session.use_only_cookies', '1');
73     @header(
'Cache-Control: no-cache, no-store, must-revalidate'); // HTTP 1.1.
74     @header(
'Pragma: no-cache'); // HTTP 1.0.
75     @header(
'Expires: 0'); // Proxies.
76     @session_name(
'online_clinic_management_system');
77     session_start();
78
79     
// check if membership system exists
80     setupMembership();
81
82     
// silently apply db changes, if any
83     @include_once(
"$currDir/updateDB.php");
84
85     
// do we have a login request?
86     logInMember();
87
88     
// convert expanded sorting variables, if provided, to SortField and SortDirection
89     $postedOrderBy = array();
90     
for($i = 0; $i < maxSortBy; $i++){
91         
if(isset($_REQUEST["OrderByField$i"])){
92             $sd = ($_REQUEST[
"OrderDir$i"] == 'desc' ? 'desc' : 'asc');
93             
if($sfi = intval($_REQUEST["OrderByField$i"])){
94                 $postedOrderBy[] = array($sfi => $sd);
95             }
96         }
97     }
98     
if(count($postedOrderBy)){
99         $_REQUEST[
'SortField'] = '';
100         $_REQUEST[
'SortDirection'] = '';
101         
foreach($postedOrderBy as $obi){
102             $sfi =
''; $sd = '';
103             
foreach($obi as $sfi => $sd);
104             $_REQUEST[
'SortField'] .= "$sfi $sd,";
105         }
106         $_REQUEST[
'SortField'] = substr($_REQUEST['SortField'], 0, -2 - strlen($sd));
107         $_REQUEST[
'SortDirection'] = $sd;
108     }elseif($_REQUEST[
'apply_sorting']){
109         
/* no sorting and came from filters page .. so clear sorting */
110         $_REQUEST[
'SortField'] = $_REQUEST['SortDirection'] = '';
111     }


Gõ tìm kiếm nhanh...